package com.ocom.srvpamh.feignclient;

import com.ocom.common.constant.CompanyServiceUrl;
import com.ocom.common.constant.HumanServiceUrl;
import com.ocom.common.request.human.UpdateUserRegionRequest;
import com.ocom.common.request.web.CommonPidVo;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "human")
public interface HumanClientService {

    @PostMapping(HumanServiceUrl.URL_GetPersonInfoByPhoneOrCard)
    Result PersonnelGetPersoDecry(@RequestBody Map<String, Object> mapPersoDecry);
    
    @PostMapping(CompanyServiceUrl.URL_queryUserLeave)
    Result queryUserLeave(@RequestBody CommonPidVo commonPidVo);

    @PostMapping(HumanServiceUrl.URL_updateUserRegion)
    public Result updateUserRegion(@RequestBody UpdateUserRegionRequest request);
}
